<!-- 折叠面板 -->
<template>
  <div class="collapse">
    <div class="title" @click="isCollapse = !isCollapse">
      <slot name="title"></slot>
      <i class="fa"
        :class="isCollapse?'fa-chevron-down':'fa-chevron-right'"
        aria-hidden="true"></i>
    </div>
    <div class="content"
      v-show="isCollapse">
      <slot name="content"></slot>
    </div>
  </div>
</template>
<style lang="less" src="./index.less"></style>
<script src="./index.js"></script>
